 {include file="header.html"}
 
 <script type="text/javascript">
 $(function(){ 
	    $('#article_form').validate({
	        errorPlacement: function(error, element){
	            $(element).next('.field_notice').hide();
	            $(element).after(error);
	        },
	        success       : function(label){
	            label.addClass('right').text('OK!');
	        },
	        rules : {    
	            
	          hourstart :{
	              required : true
	          },
	          take_date:{
	        	  required : true
	          }, 
	          hourend:{
	        	  required : true
	          }, 
	          
	           lessons:{
	            	 required : true,
	                 number   : true
	             },             
	          
	             
	        },
	        messages : {
	            
	            hourstart:{
	            	required : '上课时间必选',
	            },
	            hourend:{
	            	required : '上课时间必选',
	            },
	            take_date : {
	            	 required : '日期不能为空',
	                
	            },
	            
	            lessons : {
	            	 required : '课时不能为空',
	                number   : '必选为数字'
	            },
	            
	        }
	    });
	});
 </script>
 <script type="text/javascript">
$(function(){
    $('#take_date').datepicker({dateFormat: 'yy-mm-dd'});
});
</script>
 <div class="info">
    <form method="post" enctype="multipart/form-data" id="article_form">
      <input id="course_id" type="hidden" name="course_id" value="{$course_id}" />
        <table class="infoTable">      
         <tr>  
           <th class="paddingT15">日期:</th>
                <td>               
                  <input class="infoTableInput4" type="text" value="{$coursetime.take_date}" id="take_date" name="take_date" class="pick_date"  size="10"/>
                   <label class="field_notice"></label>
                </td>
            </tr>

              <tr>
                <th class="paddingT15"> 课时:</th>
                <td class="paddingT15 wordSpacing5">                    
                    <select name="lessons">
                <option value="">{$lang.select_please}</option>
               {html_options options=$lessonslist selected=$coursetime.lessons}
              </select>                    
                     <label class="field_notice"></label>
                </td>
            </tr>
 
  
        <tr>
                <th class="paddingT15">
                    上课时间 :</th>
                <td class="paddingT15 wordSpacing5">
                 
                  <select name="hourstart"><option value="">{$lang.select_please}</option>
               {html_options options=$h selected=$coursetime.hourstart}
              </select>
              <select name="hourstartm"><option value="">{$lang.select_please}</option>
               {html_options options=$s selected=$coursetime.hourstartm}
              </select> 至 <select name="hourend"><option value="">{$lang.select_please}</option>
               {html_options options=$h selected=$coursetime.hourend}
              </select>
              <select name="hourendm"><option value="">{$lang.select_please}</option>
               {html_options options=$s selected=$coursetime.hourendm}
              </select>
                 <label class="field_notice"></label>
                </td>
            </tr>  
             
              <tr>  
           <th class="paddingT15">备注:</th>
                <td>               
                <textarea id="note" name="note" style="width:250px;height:100px;">{$coursetime.note}</textarea>
                </td>
            </tr>
            
            
               <tr>
            <th></th>
            <td class="ptb20">
                <input class="formbtn" type="submit" name="Submit" value="{$lang.submit}" />
                <input class="formbtn" type="reset" name="Submit2" value="{$lang.reset}" />
            </td>
        </tr>
             </table></form></div>
             
             
             
 